Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No blank cv/french view #991

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

sambible
Copy link
Contributor

Airgun PR for a test automating a recent BZ.

This contains all the publish changes, which should be merged soon. The portions here that should be given attention to will be marked up with a comment by me. Thanks :)

@sambible sambible added CherryPick PR needs CherryPick to previous branches 6.14.z labels Sep 28, 2023
@sambible sambible requested review from a team September 28, 2023 16:50
@sambible sambible self-assigned this Sep 28, 2023
view = self.navigate_to(self, 'Edit', entity_name=entity_name)
return view.versions.table.read()

def check_if_blank_in_french(self):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather name this differently read_french_lang(), here you are not checking this could be part of the test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This is just a read in french without any assertion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah, that does make more sense. good suggestion!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sambible Good to add doc string which would describe functionality

view = self.navigate_to(self, 'Edit', entity_name=entity_name)
return view.versions.table.read()

def check_if_blank_in_french(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This is just a read in french without any assertion.

airgun/entities/contentview_new.py Show resolved Hide resolved
airgun/views/contentview_new.py Outdated Show resolved Hide resolved
airgun/views/common.py Outdated Show resolved Hide resolved
Status = Dropdown(
locator='.//div[contains(@class, "All") or contains(@aria-haspopup="listbox")]'
)
add_repo = PF4Button('OUIA-Generated-Button-secondary-2')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These "generated" locators may not be very stable, is there any alternative, like label?

add_repo = PF4Button('OUIA-Generated-Button-secondary-2')
# Need to add kebab menu
table = PatternflyTable(
component_id='OUIA-Generated-Table-4',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same, can you use some better locator?

airgun/views/common.py Outdated Show resolved Hide resolved
airgun/views/contentview_new.py Outdated Show resolved Hide resolved
airgun/views/contentview_new.py Outdated Show resolved Hide resolved
airgun/views/contentview_new.py Outdated Show resolved Hide resolved
@@ -383,6 +386,71 @@ class add_tab(AddTab):
)


class NewAddRemoveResourcesView(View):
Copy link
Contributor

@vijaysawant vijaysawant Oct 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add doc string for a class which would help to understand added functionality.

@@ -56,3 +88,148 @@ def is_displayed(self):
def after_fill(self, value):
"""Ensure 'Create content view' button is enabled after filling out the required fields"""
self.submit.wait_displayed()


class ContentViewEditView(BaseLoggedInView):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add doc string for a class which would help to understand added functionality.

)

@View.nested
class details(Tab):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add short doc string here?

import_only = Switch(name='import_only_switch')

@View.nested
class versions(Tab):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add short doc string here?

new_filter = Text(".//button[@ui-sref='content-view.yum.filters.new']")


class ContentViewVersionPublishView(BaseLoggedInView):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add doc string for a class which would help to understand added functionality.

)


class NewContentViewVersionDetailsView(BaseLoggedInView):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add doc string for a class which would help to understand added functionality.

airgun/views/contentview_new.py Outdated Show resolved Hide resolved
@Gauravtalreja1
Copy link
Collaborator

@sambible Could you update this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z CherryPick PR needs CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants